import 'package:json_annotation/json_annotation.dart';

part 'BookModel.g.dart';

@JsonSerializable()
class BookModel extends Object with _$BookModelSerializerMixin {
  String isbn;
  String coverImage;
  String bookName;
  String publisher;
  String author;

  BookModel(this.isbn, this.coverImage, this.bookName, this.publisher, this.author);

  factory BookModel.fromJson(Map<String, dynamic> json) => _$BookModelFromJson(json);
}